import { BaseService, Service } from '@/core';

@Service('app/userHf')
export default class extends BaseService {
	// 个人中心-累计补贴
	cumulativeSubsidy(params) {
		return this.request({
			url: '/cumulativeSubsidy',
			params: {
				...params
			},
			isLoading:true
		});
	}

	// 绑定手机号
	bindPhone(params = {}) {
		return this.request({
			url: '/bindPhone',
			method: 'POST',
			data: {
				...params
			}
		});
	}

	// 退出登录
	logout(params) {
		return this.request({
			url: '/logout',
			params: {
				...params
			}
		});
	}

	// 唤醒微信授权登录
	userInfo(params = {}) {
		return this.request({
			url: '/userInfo',
			method: 'POST',
			data: {
				...params
			}
		});
	}
	
	//app微信授权登录
	loginWx(params = {}) {
		return this.request({
			url: '/loginWx',
			method: 'POST',
			data: {
				...params
			}
		});
	}

	// 用户下单领券总额
	couponMoney(params = {}) {
		return this.request({
			url: '/couponMoney',
			params: {
				...params
			}
		});
	}
}
